import { BaseService, Service, Permission } from '@/cool';

@Service('crm/withdraw')
export default class extends BaseService {
	@Permission('pass')
	async pass(params) {
		return this.request({
			url: '/pass',
			method: 'POST',
			data: {
				...params
			}
		});
	}
	@Permission('reject')
	async reject(params) {
		return this.request({
			url: '/reject',
			method: 'POST',
			data: {
				...params
			}
		});
	}
	@Permission('batchOperate')
	async batchOperate(params) {
		return this.request({
			url: '/batchOperate',
			method: 'POST',
			data: {
				...params
			}
		});
	}
}
